home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / internet / sweeper / samples / olecon~1 / controls / webbit~1 / webbit~1.odl < prev    next >
Text File  |  1995-12-04  |  3KB  |  102 lines

  1. //=--------------------------------------------------------------------------=
  2. // WebBitmap.ODL
  3. //=--------------------------------------------------------------------------=
  4. // Copyright  1995  Microsoft Corporation.  All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // ODL file for the control(s) and automation object(s) in this inproc server
  13. //
  14. #include <olectl.h>
  15. #include <idispids.h>
  16. #include <internet.h>
  17. #include "dispids.h"
  18.  
  19. // can't include oaidl.h, so this will have to do
  20. //
  21. #define DISPID_NEWENUM -4
  22.  
  23.  
  24. //=--------------------------------------------------------------------------=
  25. // the libid for this type libray
  26. //
  27. [
  28.     uuid(b92bb5c0-2e73-11cf-b6cf-00aa00a74daf),
  29.     helpstring("WebBitmap Control Library"),
  30.     lcid(0x0000),
  31.     version(1.0)
  32. ]
  33. library WebBitmapObjects {
  34.  
  35.     // standard imports
  36.     //
  37.     importlib("STDOLE32.TLB");
  38.     importlib(STDTYPE_TLB);
  39.     importlib("datapath.tlb");
  40.  
  41.     // primary dispatch interface for CWebBitmap control
  42.     //
  43.     [
  44.         uuid(bb1a1840-2e73-11cf-b6cf-00aa00a74daf),
  45.         helpstring("WebBitmap Control"),
  46.         hidden,
  47.         dual,
  48.         odl
  49.     ]
  50.     interface IWebBitmap : IDispatch {
  51.  
  52.         // properties
  53.         //
  54.         [id(DISPID_READYSTATE), propget]
  55.             HRESULT ReadyState([out, retval] long * thestate);
  56.  
  57.         [id(DISPID_BMPPATH), propget]
  58.             HRESULT Bitmap([out, retval] OLE_DATAPATH * path);
  59.         [id(DISPID_BMPPATH), propput]
  60.             HRESULT Bitmap([in] OLE_DATAPATH path);
  61.  
  62.         // methods
  63.         //
  64.         [id(DISPID_ABOUTBOX)]
  65.             void AboutBox(void);
  66.         [id(DISPID_SCRAMBLE)]
  67.             HRESULT Scramble(void);
  68.    
  69.     };
  70.  
  71.     // event interface for CWebBitmap controls ...
  72.     //
  73.     [
  74.         uuid(bbcb18c0-2e73-11cf-b6cf-00aa00a74daf),
  75.         helpstring("Event interface for WebBitmap control"),
  76.         hidden
  77.     ]
  78.     dispinterface DWebBitmapEvents {
  79.         
  80.         properties:
  81.         
  82.         methods:
  83.         
  84.         [id(DISPID_READYSTATECHANGE)]
  85.                 void OnReadyStateChange(long newState);
  86.         [id(DISPID_PROGRESS)]
  87.                 void OnProgress(long percentDone);
  88.  
  89.     };
  90.  
  91.     // coclass for CWebBitmap controls
  92.     //
  93.     [
  94.         uuid(bd11a280-2e73-11cf-b6cf-00aa00a74daf),
  95.         helpstring("WebBitmap control")
  96.     ]
  97.     coclass WebBitmap {
  98.         [default]         interface IWebBitmap;
  99.         [default, source] dispinterface DWebBitmapEvents;
  100.     };
  101. };
  102.